From 2a11f5f8893170c65e0724511eeed66e3eb2f6b1 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 28 Apr 2020 13:24:06 +0100 Subject: [PATCH] Use attributes instead of element-type annotation The `element-type` annotation is for GList and GSList only, and turns out adding support for GListModel in gobject-introspection breaks Vala and the GIR for GIO. Instead of using `element-type`, we can use the `attributes` annotation, which is ignored by code generators based on the GIR data. --- gtk/gtkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index f35c1c0066..9319cce2ea 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2556,7 +2556,8 @@ gtk_window_get_modal (GtkWindow *window) * callbacks that might destroy the widgets or add new ones, be aware that * the list of toplevels will change and emit the "items-changed" signal. * - * Returns: (element-type GtkWidget) (transfer none): the list of toplevel widgets + * Returns: (transfer none) (attributes element-type=GtkWindow): the list + * of toplevel widgets */ GListModel * gtk_window_get_toplevels (void) -- 2.30.2